# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-diskcache
_pkgname=diskcache
pkgver=5.6.3
pkgrel=4
pkgdesc='A disk and file backed cache library, written in pure-Python, and compatible with Django.'
arch=('any')
url='https://pypi.org/project/diskcache/'
license=('Apache')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('2b6c30f25656c05e69ce3550a808ecb4f4e9727b7709b0eac770ae6414fd03a12bd8b37424dac762663ccf532c2cc94b565b01e7ab9714a996dad47f0ff79602')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

